const express = require('express');
const router = express.Router();
const service = require('./service');//相关操作逻辑s
//求助
router.post("/web/gethelplist", service.webGetHelpList);
router.post("/web/gethelpcontent",service.webGetHelpContent);
//文章列表
router.post("/web/getarticlelist",service.webGetArticleList);
router.post("/web/getarticlecontent",service.webGetArticleContent);
//公司列表
router.post("/web/getcompanylist",service.webGetCompanyList);
router.post("/web/getcompanycontent",service.webGetCompanyContent);
//工作列表
router.post("/web/getjoblist",service.webGetJobList);
router.post("/web/getjobcontent",service.webGetJobContent);
//留言
router.post("/web/setcomment",service.webSetComment);
router.post("/web/getcommentlist",service.webGetCommentList);
router.post("/web/setreply",service.webSetReply);
router.post("/web/getreplylist",service.webGetReplyList);
router.post('/web/getnotice', service.webGetNotice)
router.post("/web/changenotice",service.webChangeNotice)
//活动
router.post("/web/getactivitylist",service.webGetActivityList);
router.post('/web/getactivitycontent', service.webGetActivityContent);
router.post('/web/setjoin', service.webSetJoin);
//二手
router.post("/web/getoldstufflist",service.webGetOldStuffList);
router.post('/web/getoldstuffcontent', service.webGetOldStuffContent);

//搜索
router.post('/web/search', service.search);

module.exports = router;